package com.ruoyi.socket.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author 晓彬
 * @date 2023-05-09 11:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "chat_records")
public class ChatRecords {
    private ObjectId id;
    private String username;
    private String content;
    @Field("create_time")
    private Date createTime;
}
